package com.wusn.dubbo.demo.provider;

import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@DubboService
@Service
public class ProviderImpl implements Provider {

    @Override
    public String sayHello(String name) {
        if (name != null) {
            return "Hello " + name;
        }
        return "Hello World" ;
    }
}
